package top.yudoge.dogeeditorserverj.db;

import top.yudoge.dogeeditorserverj.db.config.SQLDataSource;

import java.util.List;

public interface SQLDataSourceConnector {

    SQLDataSource getDataSource();

    List<Database> getDatabases();

    List<Schema> getSchemas(String dbName);

    List<Table> getTables(String dbName, String schema);

    List<Column> getColumns(String dbName, String schema, String tableName);

    List<Index> getIndices(String dbName, String schema, String tableName);

    void onDestroy();

}
